<template>
	<div>
		<div class="formListDiv">
			<el-table :data="tableList.elementList" style="width: 100%">
		      <el-table-column type="index" width="50"></el-table-column>
		      <el-table-column prop="name" label="名称"></el-table-column>
		      <el-table-column prop="mark" label="备注"></el-table-column>
		      <el-table-column label="操作">
			      <template scope="scope">
					<el-button type="primary" @click="elementDataList(scope.$index,scope.row)">添加表单</el-button>
			      </template>
			    </el-table-column>

		    </el-table>
		</div>
	</div>
</template>
<script>

import _http from '../common/http.vue'
export default{
	data(){
		return{
			tableList:{
				elementList:[]
			}
		}
	},
	mounted(){
		this.getElementList()
	},
	methods:{
		getElementList(){
    		_http.axiosRequest(this,'formList',{},(res)=>{
    			this.tableList.elementList = res.data
    		})
		},
		elementDataList(index,row){
			
		}
	}
}	
</script>


